package com.example.demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.User;

public interface UserService extends IService<User> {
    String login(String username, String password);
    boolean isAdmin(String username); // 新增方法判断是否为管理员

    boolean existsUsername(String username);
    public User getUserByCredentials(String username, String password);
}